import {getCustomNav} from '@/util/util.js'
export default{
	methods:{
		navigate(url){
			if(url)uni.navigateTo({url});
		},
		back(){
			uni.navigateBack({
				fail(){
					uni.switchTab({
						url:'/pages/index/index'
					})
				}
			})
		}
	},
	computed:{
		mt(){
			let custom=getCustomNav();
			return custom.statusBar+custom.nvaMartom+custom.navHeight+40+'rpx';
		}
	},
	data(){
		return{
			cloudStorage:'https://job-supermarket-1306862033.cos.ap-chengdu.myqcloud.com/uniapp/',
		}
	},
	onPageScroll(e) {
		this.topBgColor=e.scrollTop >= 1?'linear-gradient(to right,#8bd69d,#4dcfdf)':'rgba(0,0,0,0)'
	}
}
